Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Collections.​Generic.​IEqualityComparer<​T>

Assembly: System.Runtime

Defines methods to support the comparison of objects for equality.

Methods

bool
Equals​(T x, T y)
Determines whether the specified objects are equal.
Returns <see langword="true" /> if the specified objects are equal; otherwise, <see langword="false" /> .
x The first object of type <paramref name="T" /> to compare.
y The second object of type <paramref name="T" /> to compare.
int
GetHashCode​(T obj)
Returns a hash code for the specified object.
Returns A hash code for the specified object.
obj The <see cref="T:System.Object" /> for which a hash code is to be returned.